<layout name="layout" /> 
<div id="category">
	<form action="__CONTROLLER__/restoreTrash" method="post"> 
	<div class="row">
		<div class="col-md-12">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>
							<label class="position-relative">
								<input type="checkbox" class="ace">
								<span class="lbl"></span>
							</label>
						</th>
						<th>标题</th>
						<th class="hidden-xs hidden-sm">作者</th>
						<th class="hidden-xs hidden-sm">所属分类</th>
						<th class="hidden-xs hidden-sm">删除日期</th>
						<th class="hidden-xs hidden-sm">评论</th>
						<th>操作</th>
					</tr>
				</thead>

				<tbody>
					<foreach name="article" item="v">
					<tr >
						<td >
							<label class="position-relative">
								<input name="ids[]" value="{$v.id}" type="checkbox" class="ace">
								<span class="lbl"></span>
							</label>
						</td>
						<td>
						 	<if condition="$v.top eq 1"><span class="label label-sm label-warning" style="margin-right:5px">置顶</span></if><a href="">{$v.title}</a>
						</td>
						<td class="hidden-xs hidden-sm">{$v.user}</td>
						<td class="hidden-xs hidden-sm">{$v.cate}</td>
						<td class="hidden-xs hidden-sm">{$v.date|date="Y-m-d H:i:s",###} </td>
						<td class="hidden-xs hidden-sm">评论数</td>
						<td>
							<div class="btn-group">
								<a href="__CONTROLLER__/restoreTrash?id={$v.id}" title="还原" class="btn btn-xs btn-info">
									<i class="ace-icon fa fa-undo  bigger-120"></i>
								</a>
								<a href="__CONTROLLER__/clearTrash?id={$v.id}" title="永久删除" class="btn btn-xs btn-danger">
									<i class="ace-icon fa fa-trash-o bigger-120"></i>
								</a>
							</div>

						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="row">
		<div class="col-md-6" style="text-align:left">
			<span class="input-group-btn">
				<button class="btn btn-sm btn-info no-radius" type="submit">
					<i class="ace-icon fa fa-undo"></i>
					批量还原
				</button>				
			</span>			
		</div>
		<div class="col-md-6" style="text-align:right">{$page}</div>
	</div>
	</form>
</div>